Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickTime Components /
Chapter 3 - Standard Image-Compression Dialog Components


Creating a Standard Image-Compression Dialog Component

Apple's standard image-compression dialog component fully implements the functional interface for components of this type. As a result, this component allows you to customize the dialog box by enabling the custom button or by defining a filter function. In most cases your application should be able to use the component that is supplied by Apple. However, if you want to create your own standard image-compression dialog component, you should read this section.

Apple has defined a component type value for standard image-compression dialog components. All components of this type have the same type and subtype values. You can use the following constants to specify the type and subtype.

#define  StandardCompressionType    'scdi'
#define  StandardCompressionSubType 'imag'
Apple has defined a functional interface for standard image-compression dialog components. For information about the functions your component must support, see the next section, "Standard Image-Compression Dialog Components Reference." You can use the following constants to refer to the request codes for each of the functions your component must support.

#define  scPositionRect             2  /* SCPositionRect */
#define  scPositionDialog           3  /* SCPositionDialog */
#define  scSetTestImagePictHandle   4  /* SCSetTestImagePictHandle */
#define  scSetTestImagePictFile     5  /* SCSetTestImagePictFile */
#define  scSetTestImagePixMap       6  /* SCSetTestImagePixMap */
#define  scGetBestDeviceRect        7  /* SCGetBestDeviceRect */
#define  scRequestImageSettings     10 /* SCRequestImageSettings */
#define  scCompressImage            11 /* SCCompressImage */
#define  scCompressPicture          12 /* SCCompressPicture */
#define  scCompressPictureFile      13 /* SCCompressPictureFile */
#define  scRequestSequenceSettings  14 /* SCRequestSequenceSettings */
#define  scCompressSequenceBegin    15 /* SCCompressSequenceBegin */
#define  scCompressSequenceFrame    16 /* SCCompressSequenceFrame */
#define  scCompressSequenceEnd      17 /* SCCompressSequenceEnd */
#define  scDefaultPictHandleSettings18 /* SCDefaultPictHandleSettings */
#define  scDefaultPictFileSettings  19 /* SCDefaultPictFileSettings */
#define  scDefaultPixMapSettings    20 /* SCDefaultPixMapSettings */
#define  scGetInfo                  21 /* SCGetInfo */
#define  scSetInfo                  22 /* SCSetInfo */
#define  scNewGWorld                23 /* SCNewGWorld */

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help